<?php
namespace app\common\model;
use think\Db;
class Proposer extends \think\Model {

    protected $table = 'up_dog_proposer';


    /**
     * @param $where
     * @return int|string
     * 统计我的申请领养数量
     */
    public function countNum($where){
        $model = self::instance();
        $count = $model->where($where)->count();
        return $count;
    }
    private static $instance;

    public static function instance()
    {
        if (!(self::$instance instanceof self)) {
            self::$instance = new self();
        }
        return self::$instance;
    }
}